programming4us
           
 
 
Windows Server

Windows Server 2008 : Using dnscmd - Clearing the DNS Cache, Working with DNS Partitions

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/7/2013 9:00:33 PM

1. Clearing the DNS Cache

When a DNS server queries a forwarder, it keeps the result in the DNS cache for the time to live (TTL) specified in the DNS record. You can use dnscmd to clear this DNS cache.

Clear Cache CommandsComments
Clear the DNS server cache.
/clearcache
dnscmd server /clearcache
c:\>dnscmd /clearcache
c:\>dnscmd dc1 /clearcache

If executed without a server name, it clears the DNS cache on the current server (assuming it’s a DNS server). You can also specify a remote DNS server for the command. Figure 5-2 shows how this is done from the DNS console.
Clear the host cache.
c:\>ipconfig /flushdns

You can clear the host cache on any computer using the ipconfig /flushdns command.

Note

Although you can clear the host’s cache using the ipconfig /flushdns command on any computer, this is not the same as clearing the cache with the dnscmd or in the DNS console.


Figure 1. Clearing the DNS cache from the DNS console

2. Working with DNS Partitions

You might want to replicate data only between specific domain controllers. You can do this by creating directory partitions and having DNS servers enlist the partitions.

DNS Partition CommandsComments
Create a DNS application partition.
/createdirectorypartition
dnscmd server /createdirectorypartition
partitionFQDN
c:\>dnscmd dc1 /createdirectorypartition
pcgpartition.pearson.pub

Data in the partition is replicated as part of Active Directory replication, and any severs that are configured with the partition.

Tip

A primary purpose of creating a directory partition is to control replication between a specific group of domain controllers (DC).

Figure 5-3
shows how the created partition can be picked and how an ADI DNS zone can be configured to replicate with the partition.
List directory partitions.
/enumdirectorypartitions
dnscmd server /enumdirectorypartitions
c:\>dnscmd dc1 /enumdirectorypartitions

This lists directory partitions for the specified server. By default, there are two partitions: DomainDnsZones and ForestDnsZones. This command also lists any partitions created with the /createdirectorypartition command.
Add a partition to a DNS server.
/enlistdirectorypartition
dnscmd server /enlistdirectorypartition
FQDNofPartition
c:\>dnscmd dc1 /enlistdirectorypartition
pcgpartition.pearson.pub

Adds a DNS server to the replication set of the specified partition.

Note

This command is not needed on the DNS server where the directory partition was created.

Remove a directory partition.
/deletedirectorypartition
dnscmd server /deletedirectorypartition
FQDNofPartition
c:\>dnscmd dc1 /deletedirectorypartition
pcgpartition.pearson.pub

Deletes an existing DNS application directory partition from the specified DNS server. If this is the last server where it exists, the partition is permanently deleted.

Figure 2. Configuring a server to replicate with a directory partition

Other -----------------
- Windows Server 2008 : Using dnscmd - Retrieving DNS Information, Exporting DNS Data, Forcing Zone Transfers
- Windows Small Business Server 2011 : Deploying SQL Server 2008 R2 for Small Business
- Windows Small Business Server 2011 : Deploying a Second Domain Controller
- Windows Small Business Server 2011 : Deploying a Second Server (part 2) - Performing Post-Installation Tasks - Changing the Computer Name and Joining the Domain
- Windows Small Business Server 2011 : Deploying a Second Server (part 2) - Performing Post-Installation Tasks - Adjusting Time Zone Settings, Configuring Network Settings
- Windows Small Business Server 2011 : Deploying a Second Server (part 1) - Installing a Second Server
- Windows Small Business Server 2011 : Adding a Second Server - Expanding Your Network
- Troubleshooting Windows Home Server 2011 : Troubleshooting Startup - Troubleshooting Startup Using the System Configuration Utility
- Troubleshooting Windows Home Server 2011 : Troubleshooting Device Problems
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 14) - Managing volumes on dynamic disks - Configuring RAID 5
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 13) - Managing volumes on dynamic disks - Configuring RAID 1, Mirroring boot and system volumes
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 12) - Managing volumes on dynamic disks - Creating a simple or spanned volume, Configuring RAID 0
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 11) - Managing GPT disk partitions on basic disks
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 10) - Managing MBR disk partitions on basic disks - Extending partitions, Shrinking partitions
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 9) - Managing MBR disk partitions on basic disks - Formatting a partition, logical drive, or volume, Configuring drive
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 8) - Managing MBR disk partitions on basic disks - Creating partitions and simple volumes
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 7) - Configuring storage - Creating and managing virtual hard disks for Hyper-V, Converting FAT or FAT32 to NTFS, Worki
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 6) - Configuring storage - Using the MBR and GPT partition styles, Using the disk storage types
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 5) - Configuring storage - Using the Disk Management tools, Adding new disks
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 4) - Installing and configuring file services - Configuring Hyper-V
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us